package com.waterworld.watch.common.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by nhuan on 2019/3/21.
 * 消息数据库
 */

@Entity
public class Message {
    @Id(autoincrement = true)
    @Index(unique = true)
    private Long id;

    private String name;
    private String head;
    private String createTime;
    private Integer groupId;
    private Integer sender;
    private Integer senderType;
    private String msgContent;
    private Integer msgType;
    private Integer msgId;
    private Integer msgLength;
    //本地存储地址
    private String localStorage;
    //当前状态
    private Integer state;
    @Generated(hash = 550692651)
    public Message(Long id, String name, String head, String createTime,
            Integer groupId, Integer sender, Integer senderType, String msgContent,
            Integer msgType, Integer msgId, Integer msgLength, String localStorage,
            Integer state) {
        this.id = id;
        this.name = name;
        this.head = head;
        this.createTime = createTime;
        this.groupId = groupId;
        this.sender = sender;
        this.senderType = senderType;
        this.msgContent = msgContent;
        this.msgType = msgType;
        this.msgId = msgId;
        this.msgLength = msgLength;
        this.localStorage = localStorage;
        this.state = state;
    }
    @Generated(hash = 637306882)
    public Message() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getHead() {
        return this.head;
    }
    public void setHead(String head) {
        this.head = head;
    }
    public String getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public Integer getGroupId() {
        return this.groupId;
    }
    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }
    public Integer getSender() {
        return this.sender;
    }
    public void setSender(Integer sender) {
        this.sender = sender;
    }
    public Integer getSenderType() {
        return this.senderType;
    }
    public void setSenderType(Integer senderType) {
        this.senderType = senderType;
    }
    public String getMsgContent() {
        return this.msgContent;
    }
    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }
    public Integer getMsgType() {
        return this.msgType;
    }
    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }
    public Integer getMsgId() {
        return this.msgId;
    }
    public void setMsgId(Integer msgId) {
        this.msgId = msgId;
    }
    public Integer getMsgLength() {
        return this.msgLength;
    }
    public void setMsgLength(Integer msgLength) {
        this.msgLength = msgLength;
    }
    public String getLocalStorage() {
        return this.localStorage;
    }
    public void setLocalStorage(String localStorage) {
        this.localStorage = localStorage;
    }
    public Integer getState() {
        return this.state;
    }
    public void setState(Integer state) {
        this.state = state;
    }

    

    
}
